file(GLOB Core_ROOT_Cpp
	*.cc)
file(GLOB Core_ROOT_Hpp
	*.hpp)
file(GLOB Core_ROOT_H
	*.h)

add_library(Core STATIC ${Core_ROOT_Cpp} ${Core_ROOT_H} ${Core_ROOT_Hpp})
	
if(UNIX)
	if (CMAKE_BUILD_TYPE MATCHES "Release")
		target_link_libraries(Core )
	else()
		target_link_libraries(Core )
	endif()

	target_link_libraries(Core -static-libstdc++)
else()
	target_link_libraries(Core )
	if(MSVC)
	else()
	target_link_libraries(Core -static-libstdc++)
	endif()
endif()

set_target_properties(Core PROPERTIES OUTPUT_NAME_DEBUG "Core")
set_target_properties(Core PROPERTIES PREFIX "")
set_target_properties(Core PROPERTIES 
	ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})